﻿namespace ETModel
{
    /// <summary>
    /// 最基础的消息,所有客户端服务端发送的消息,都实现本接口
    /// </summary>
	public interface IMessage
	{
	}
	
    /// <summary>
    /// 用来请求的消息(需要回复的消息)
    /// </summary>
	public interface IRequest: IMessage
	{
		int RpcId { get; set; }
	}
    /// <summary>
    /// 用来回复的消息(有配套的请求消息)
    /// </summary>
	public interface IResponse : IMessage
	{
		int Error { get; set; }
		string Message { get; set; }
		int RpcId { get; set; }
	}

	public class ResponseMessage : IResponse
	{
		public int Error { get; set; }
		public string Message { get; set; }
		public int RpcId { get; set; }
	}
}